const { DataTypes } = require("sequelize")
const db = require("../db/index")
module.exports = db.define('orders', {
    userid: DataTypes.INET,
    productid: DataTypes.INET,
    kw: DataTypes.CHAR(255),
    sum: DataTypes.INET,
    allprice: DataTypes.INET,
    orderid: DataTypes.CHAR(255),
    address: DataTypes.CHAR(255),
    bz: DataTypes.CHAR(255),
    canju: DataTypes.CHAR(255),
    issong: DataTypes.INET,
    status: {
        type: DataTypes.INET,
        defaultValue: 0
    },
    shoperstatus: {
        type: DataTypes.INET,
        defaultValue: 0
    },
}, { timestamps: true })